import { combineReducers } from 'redux'
import storageUtils from '../utils/storageUtils'

const initHeadTitle = '首页'
function headTitle (state=initHeadTitle, action) {
  switch (action.type) {
    default:
      return state
  }
}

const initUser = storageUtils.getUser ()
function user (state=initUser, action) {
  switch (action.type) {
    default:
      return state
  }
}

// 暴露整合reducer
export default combineReducers ({
  headTitle,
  user
})